﻿using System;
using System.Collections.Generic;
using System.Text;

namespace WithInterfaces
{
    public abstract class MenuItem
    {
        protected string m_Name = string.Empty;
        protected string m_CurrentMenuItemTitle = string.Empty;
        protected int m_MenuItemLevel = 0;

        protected void ShowTitle()
        {
            System.Console.WriteLine("----- Level {0} - {1} -----" + System.Environment.NewLine, m_MenuItemLevel, m_CurrentMenuItemTitle);
        }

        public override string ToString()
        {
            return m_Name;
        }

        public abstract void OnClick();
    }
}